package com.fg.pro.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.fg.pro.model.feign")
@ComponentScan(value = "com.fg.pro",excludeFilters = {
        @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,classes = {
                com.fg.pro.model.config.RedissonConfig.class,
                com.fg.pro.model.config.DdlConfiguration.class,
                com.fg.pro.model.exception.OtherExceptionCatch.class
        })
})
public class FgGatewayAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(FgGatewayAdminApplication.class, args);
    }

}
